#ifndef HTTP_SERVER_HPP
#define HTTP_SERVER_HPP

#include <boost/asio.hpp>

/* 负责监听，与客户端建立连接/会话 */
class HttpServer
{
public:
    HttpServer(boost::asio::io_context &io_context, short port);
private:
    void do_accept();
    void do_error(const boost::system::error_code& ec);
private:
    boost::asio::ip::tcp::acceptor acceptor_;
};

#endif // HTTP_SERVER_HPP
